/**
 * 
 */
package com.chacha.framework.common.models;

import java.io.Serializable;
import java.util.List;

/**
 * @author rachmat_doni@smltech.co.id
 *
 */
@SuppressWarnings("serial")
public class PagingObject implements Serializable{

	private int firstRow;
	private int lastRow;
	private int rowSize;
	private int pageShow;
	private int pageSize;
	private List<SortObject> sorts; 
	
	public PagingObject(int firstRow, int lastRow, int rowSize, int pageShow) {
		super();
		this.firstRow = firstRow;
		this.lastRow = lastRow;
		this.rowSize = rowSize;
		this.pageShow = pageShow;
	}

	public PagingObject(int firstRow, int lastRow, int rowSize, int pageShow,
			int pageSize) {
		super();
		this.firstRow = firstRow;
		this.lastRow = lastRow;
		this.rowSize = rowSize;
		this.pageShow = pageShow;
		this.pageSize = pageSize;
	}

	public int getFirstRow() {
		return firstRow;
	}

	public void setFirstRow(int firstRow) {
		this.firstRow = firstRow;
	}

	public int getLastRow() {
		return lastRow;
	}

	public void setLastRow(int lastRow) {
		this.lastRow = lastRow;
	}

	public int getRowSize() {
		return rowSize;
	}

	public void setRowSize(int rowSize) {
		this.rowSize = rowSize;
	}

	public int getPageShow() {
		return pageShow;
	}

	public void setPageShow(int pageShow) {
		this.pageShow = pageShow;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public List<SortObject> getSorts() {
		return sorts;
	}

	public void setSorts(List<SortObject> sorts) {
		this.sorts = sorts;
	}

	@Override
	public String toString() {
		return "PagingObject [firstRow=" + firstRow + ", lastRow=" + lastRow
				+ ", rowSize=" + rowSize + ", pageShow=" + pageShow
				+ ", pageSize=" + pageSize + ", sorts=" + sorts + "]";
	}
	
}
